package com.itheima.reggie.entity;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.itheima.reggie.common.LocalDateTimeConverter;

import lombok.Data;

import java.time.LocalDateTime;
@Data
public class EmployeeStr {
    @ExcelProperty(value = "员工id")
    private String idStr;

    @ExcelProperty(value = "账号")
    private String username;
    @ExcelProperty(value = "姓名")
    private String name;
    @ExcelIgnore
    private String password;
    @ExcelProperty(value = "手机号")
    private String phone;
    @ExcelProperty(value = "性别")
    private String sex;

    @ExcelProperty("身份证号")
    private String idNumber;

    // @JsonFormat(shape=JsonFormat.Shape.STRING, pattern="yyyy-MM-dd HH:mm:ss")
    @ExcelProperty(value = "创建时间",converter = LocalDateTimeConverter.class)
    private LocalDateTime createTime;
    // @JsonFormat(shape=JsonFormat.Shape.STRING, pattern="yyyy-MM-dd HH:mm:ss")
    @ExcelProperty(value = "更新时间",converter = LocalDateTimeConverter.class)
    private LocalDateTime updateTime;

    @ExcelProperty("状态")
    private String statusStr;

    @ExcelProperty("创建者")
    private String createUserStr;

    @ExcelProperty("更新者")
    private String updateUserStr;
}

